<div class="bjui-pageContent" id="develop_plan_update_div">
    <form action="/developPlan/save" data-toggle="validate" id="submitForm"
          data-alertmsg="false">
        <table class="table table-condensed table-hover" width="100%">
            <input type="hidden" id="id" value="${bo.id?c}" name="id">
            <input type="hidden" id="flag" value="update" name="flag">
            <tbody>
            <tr>
                <td>
                    <label style="width: 150px" for="systemName" class="control-label x85">系统：</label>
                    <input type="text" name="systemName"  id="systemName" value="${bo.systemName!""}"
                           data-rule="required;length[1~100, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="modelName" class="control-label x85">任务模块：</label>
                    <input type="text" name="modelName"  id="modelName" value="${bo.modelName!""}"
                           data-rule="required;length[1~100, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="code" class="control-label x85">功能描述：</label>
                    <input type="text" name="modelDesc"   id="modelDesc" value="${bo.modelDesc!""}"
                           data-rule="length[1~300, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="modelWorth"  class="control-label x85">业务价值：</label>
                    <input type="text" name="modelWorth"   id="modelWorth" value="${bo.modelWorth!""}"
                           data-rule="length[1~300, true]" size="15">
                </td>
            </tr>
            <tr>
                <td>
                    <label style="width: 150px" for="level" class="control-label x85">优先级：</label>
                    <input type="text" name="level"  id="level" value="${bo.level!""}"
                           data-rule="digits;required" size="15">
                </td>

                <td>
                    <label style="width: 150px" for="status" class="control-label x85">状态：</label>
                    <select name="status" id="j_custom_sale" style="width: 150px" data-toggle="selectpicker" data-rule="required">
                        <option <#if bo.status=0>selected="selected"</#if> value="0">未开始</option>
                        <option  <#if bo.status=1>selected="selected"</#if> value="1">开发中</option>
                        <option  <#if bo.status=2>selected="selected"</#if> value="2">联调中</option>
                        <option  <#if bo.status=3>selected="selected"</#if> value="3">测试中</option>
                        <option  <#if bo.status=4>selected="selected"</#if> value="4">待发布</option>
                    </select>
                </td>
                <td>
                    <label style="width: 150px" for="dayRate" class="control-label x85">每日进度：</label>
                    <input type="text" name="dayRate" id="dayRate" value="${bo.dayRate!""}"
                           data-rule="digits" size="15"> %
                </td>
                <td>
                    <label style="width: 150px" for="javaer" class="control-label x85">后端开发：</label>
                    <input type="text" name="javaer"   id="javaer" value="${bo.javaer!""}"
                           data-rule="length[1~20, true]" size="15">
                </td>
            </tr>
            <tr>
                <td>
                    <label style="width: 150px" for="j_custom_lname" style="width: 150px" class="control-label x85">后端开发时间（天）：</label>
                    <input type="text" name="javaDeveTime"  id="javaDeveTime" value="${bo.javaDeveTime!""}"
                           data-rule="digits;length[1~20, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="j_custom_lname" class="control-label x85">后端完成时间：</label>
                    <input type="text" name="showJavaDeveFinishTime"  id="showJavaDeveFinishTime" value="${bo.showJavaDeveFinishTime!""}"
                           data-toggle="datepicker" data-rule="date" size="15">
                </td>

                <td>
                    <label style="width: 150px" for="j_custom_lname" class="control-label x85">后端实际完成时间(天)：</label>
                    <input type="text" name="javaDeveActualTime" id="javaDeveActualTime" value="${bo.javaDeveActualTime!""}"
                           data-rule="digits;length[1~100, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="j_custom_lname" class="control-label x85">开发联调时间：</label>
                    <input type="text" name="showJointDebugTime" id="showJointDebugTime" value="${bo.showJointDebugTime!""}"
                           data-toggle="datepicker" data-rule="date" size="15">
                </td>

            </tr>
            <tr>
                <td>
                    <label style="width: 150px" for="weber" class="control-label x85">前端开发人员：</label>
                    <input type="text" name="weber" id="weber"  value="${bo.weber!""}"
                           data-rule="length[1~20, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="webDeveTime" class="control-label x85">前端开发时间（天）：</label>
                    <input type="text" name="webDeveTime" id="webDeveTime" value="${bo.webDeveTime!""}"
                           data-rule="digits;length[1~20, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="jointDebugActualTime" class="control-label x85">实际联调时间（天）：</label>
                    <input type="text" name="jointDebugActualTime" id="jointDebugActualTime" value="${bo.jointDebugActualTime!""}"
                           data-rule="digits;length[1~20, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="showTestStartTime" class="control-label x85">提测时间：</label>
                    <input type="text" name="showTestStartTime" id="showTestStartTime" value="${bo.showTestStartTime!""}"
                           data-toggle="datepicker" data-rule="date" size="15">
                </td>
            </tr>
            <tr>
                <td>
                    <label style="width: 150px" for="showTestFinishTime" class="control-label x85">测试完成日期：</label>
                    <input type="text" name="showTestFinishTime" id="showTestFinishTime" value="${bo.showTestFinishTime!""}"
                           data-toggle="datepicker" data-rule="date" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="testTime" class="control-label x85">测试时间（天）：</label>
                    <input type="text" name="testTime" id="testTime" value="${bo.testTime!""}"
                           data-rule="digits;length[1~20, true]" size="15">
                </td>
                <td>
                    <label style="width: 150px" for="tester" class="control-label x85">测试人员：</label>
                    <input type="text" name="tester" id="tester" value="${bo.tester!""}"
                           data-rule="length[1~20, true]" size="15">
                </td>

                <td>
                    <label style="width: 150px" for="testActualTime" class="control-label x85">实际测试时间（天）：</label>
                    <input type="text" name="testActualTime" id="testActualTime" value="${bo.testActualTime!""}"
                           data-rule="digits" size="15">
                </td>
            </tr>
            <tr>

            </tr>

            <tr>
                <td colspan="2">
                    <label style="width: 150px;font-size: 16px;color: #000066" for="risk">距离窗口关闭还剩：</label>
                    <i style="font-size: 24px;color: red;width: 24px;height: 24px" id="countTime"></i>
                    <label style="font-size: 16px;color: #000066">秒</label>
                </td>
            </tr>
            </tbody>
        </table>
    </form>
    <form id="cancelForm" action="/developPlan/cancel" data-toggle="validate"
          data-alertmsg="false"><input type="hidden" name="id" value="${bo.id?c}"></form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li>
            <button type="button" id="closeDevelopBtn" class="btn-red" data-icon="close">取消</button>
        </li>
        <li>
            <button type="button" id="submitDevelopBtn" class="btn-blue" data-icon="save">保存</button>
        </li>
    </ul>
</div>
<script type="text/javascript">

   var count=180;

   var setCountInter = window.setInterval(function(){

       $("#countTime").html(count);
       count--;
        if (count<=0){
            $("#cancelForm").submit();
        }
   },1000);

   $("#closeDevelopBtn").click(function () {
       $("#cancelForm").submit();
   });

   $("#submitDevelopBtn").click(function () {
       $("#submitForm").submit();
   });
</script>
